package start.designpattern.prototype;

import lombok.extern.slf4j.Slf4j;

/**
 * Created by jingbin on 2020-01-31.
 * 2. 创建扩展了上面抽象类的实体类。Rectangle 矩形
 */
@Slf4j
public class Rectangle extends Shape {

    public Rectangle() {
        type = "Rectangle";
    }

    @Override
    public void draw() {
        log.info("Inside Rectangle::draw() method.");
    }


}
